package com.homework.ch07.person;

public class Student extends Person implements ISingAble,IFlyAble{
    public Student(String name, int age) {
        super(name, age);
    }

    @Override
    public void fly() {
        System.out.println(getName()+" "+getAge()+" "+"飞行~");
    }

    @Override
    public void sing() {
        System.out.println(getName()+" "+getAge()+" "+"唱歌~");
    }

    @Override
    public void run() {
        System.out.println(getName()+" "+getAge()+" "+"跑步~");
    }
}
